package view;

import java.awt.event.MouseListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;

class MyButton extends JButton{

	MyButton(ImageIcon defaultIcon,ImageIcon rolloverIcon,ImageIcon pressedIcon,MouseListener l){
		this.setIcon(defaultIcon);
		this.setRolloverIcon(rolloverIcon);
		this.setPressedIcon(pressedIcon);
		this.addMouseListener(l);
		this.setContentAreaFilled(false);
		this.setBorder(null);
	}
}